package com.example.common.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Data;

import java.math.BigInteger;
import java.time.LocalDateTime;

@Entity
@Table(name = "tool_qiniu_content")
@Data
public class ToolQiniuContent {
    @Id
    @Column(name = "content_id", nullable = false)
    private BigInteger contentId;
    
    @Column(unique = true)
    private String bucket, name;
    
    private String size, type, url;
    
    @Column(length = 100)
    private String suffix;
    
    @Column(name = "updateTime")
    private LocalDateTime updateTime;
    
    public BigInteger getContentId() {
        return contentId;
    }
    
    public void setContentId(BigInteger contentId) {
        this.contentId = contentId;
    }
    
    public String getBucket() {
        return bucket;
    }
    
    public void setBucket(String bucket) {
        this.bucket = bucket;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getSize() {
        return size;
    }
    
    public void setSize(String size) {
        this.size = size;
    }
    
    public String getType() {
        return type;
    }
    
    public void setType(String type) {
        this.type = type;
    }
    
    public String getUrl() {
        return url;
    }
    
    public void setUrl(String url) {
        this.url = url;
    }
    
    public String getSuffix() {
        return suffix;
    }
    
    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }
    
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }
    
    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}
